#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a = 1;
	int b = 2;
	scanf("%d%d", &a, &b);
	int c = a ^ b;
	int count = 0;
	while (c)
	{
		if (c & 1 == 1)
		{
			count++;
		}
		c = c >> 1;
	}
	printf("%d", count);

	return 0;
}